#include <iostream>
// #include "fact.h"

extern int fact(int);

using namespace std;

int main() {
    int val;
    cin >> val;
    cout << fact(val) << endl;
}